package pack1;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Application {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Scanner sc=new Scanner(new File("config.txt"));
			String nomDynamicClass=sc.next();
			Class dynamicClass= Class.forName(nomDynamicClass);
			IA ia=(IA) dynamicClass.newInstance();
			B b=new B();
			b.setA(ia);
			System.out.println(b.y());
			
		} catch (FileNotFoundException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {
			e.printStackTrace();
		}
		


	}

}
